<?php
    //check account type
    $account_type = $this->Session->read('account_type');
    if($account_type){
        switch ($account_type){
            case 'user':
                $user = $this->Session->read('user');
                if($user){
                    echo '<h3> Information </h3>';
                    echo $user['first_name']; echo '<br/>';
                    echo $user['last_name']; echo '<br/>';
                    echo $user['email_addr']; echo '<br/>';
                    echo $user['phone']; echo '<br/>';
                }
                break;
            case 'host':
                $host = $this->Session->read('host');
                if($host){
                    echo '<h3> Information </h3>';
                    echo $user['first_name']; echo '<br/>';
                    echo $user['last_name']; echo '<br/>';
                    echo $user['email_addr']; echo '<br/>';
                    echo $user['phone']; echo '<br/>';
                }
                break;
            default:
                echo 'No information';
                break;
        }
    }
?>
